import request from '#/utils/requestAbort';

export async function getMarketClearingList(data) {
  if (data.marketId === 'PDBLJ' || data.marketId === 'PXBNX') {
    // 处理 黑龙江 的特殊逻辑
    return request(`/market-disclosure/marketClearingGeneralSituation/getMarketClearingList`, {
      method: 'post',
      data,
    });
  }
  return request(`/disclosure/marketClearingGeneralSituation/getMarketClearingList`, {
    method: 'post',
    data,
  });
}

export async function getSpotTradingBriefingList(data) {
  if (data.marketId === 'PDBLJ' || data.marketId === 'PXBNX') {
    // 处理 黑龙江 的特殊逻辑
    return request(`/market-disclosure/marketClearingGeneralSituation/getSpotTradingBriefingList`, {
      method: 'post',
      data,
    });
  }
  return request(`/disclosure/marketClearingGeneralSituation/getSpotTradingBriefingList`, {
    method: 'post',
    data,
  });
}
